/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2025-07-05 12:05:56
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2025-07-05 14:42:12
 * @FilePath: /lesson/lesson_net/blog_tcp/TcpClientMain.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include "TcpClient.hpp"

int main(int argc, char *argv[])
{
    if (argc != 3)
    {
        std::cerr << "Usage" << argv[0] << "server_ip" << argv[1] << " server_port" << std::endl;
        exit(1);
    }

    std::string server_ip = argv[1];
    int server_port = atoi(argv[2]);

    TcpClient *clt = new TcpClient(server_ip, server_port);

    clt->InitClient();
    clt->Start();

    return 0;
}